#!/bin/bash
for _ip in $(kubectl get node|grep -E 'master|admin'|grep -v NAME|awk '{print $1}')
do
        echo ${_ip}"执行命令结果" $1
        ssh root@${_ip} "$1"
        echo -e "\n"
done
